calculate mesh current